package com.fzn.spring5.test;

import com.fzn.spring5.service.UserService;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/**
 * @program: spring5_txdemo1
 * 描述：
 * @author: fzn
 * @create: 2022-02-28 17:08
 **/
// @ExtendWith(SpringExtension.class)
// @ContextConfiguration("classpath:bean1.xml")
@SpringJUnitConfig(locations = "classpath:bean1.xml") // 复合的注解
public class JTest5 {
    @Autowired
    private UserService userService;
    @Test
    public void text() {
        userService.accountMoney();
    }
}